home *** CD-ROM | disk | FTP | other *** search
/ Aminet 15 / Aminet 15 - Nov 1996.iso / Aminet / dev / basic / ace24dist.lha / ace24.lha / include / devices / clipboard.h < prev    next >
C/C++ Source or Header  |  1996-09-10  |  2KB  |  93 lines

  1. #ifndef     DEVICES_CLIPBOARD_H
  2. #define     DEVICES_CLIPBOARD_H 1
  3. /*
  4. ** clipboard.h for ACE Basic
  5. **
  6. ** Note: Translated to ACE by ConvertC2ACE
  7. **       @ MapMeadow Software, Nils Sjoholm
  8. **
  9. **
  10. ** Date: 09/03/95
  11. **
  12. **
  13. */
  14.  
  15. /*
  16. ** This are the StructPointer defines for clipboard.h
  17. */
  18. #ifndef ClipHookMsgPtr
  19. #define ClipHookMsgPtr ADDRESS
  20. #endif
  21. #ifndef ClipboardUnitPartialPtr
  22. #define ClipboardUnitPartialPtr ADDRESS
  23. #endif
  24. #ifndef IOClipReqPtr
  25. #define IOClipReqPtr ADDRESS
  26. #endif
  27. #ifndef SatisfyMsgPtr
  28. #define SatisfyMsgPtr ADDRESS
  29. #endif
  30. /*
  31. ** End of StructPointer defines for clipboard.h
  32. */
  33.             
  34. #ifndef EXEC_TYPES_H
  35. #include    <exec/types.h>
  36. #endif
  37. #ifndef EXEC_NODES_H
  38. #include    <exec/nodes.h>
  39. #endif
  40. #ifndef EXEC_LISTS_H
  41. #include    <exec/lists.h>
  42. #endif
  43. #ifndef EXEC_PORTS_H
  44. #include    <exec/ports.h>
  45. #endif
  46.  
  47.  
  48. #define CBD_POST        (CMD_NONSTD+0)
  49. #define CBD_CURRENTREADID   (CMD_NONSTD+1)
  50. #define CBD_CURRENTWRITEID  (CMD_NONSTD+2)
  51. #define CBD_CHANGEHOOK      (CMD_NONSTD+3)
  52.  
  53. #define CBERR_OBSOLETEID    1
  54.  
  55.  
  56. STRUCT ClipboardUnitPartial  
  57.     Node cu_Node    /* list of units */
  58.     LONGINT   cu_UnitNum      /* unit number for this unit */
  59.     /* the remaining unit data is private to the device */
  60. END STRUCT 
  61.  
  62.  
  63. STRUCT IOClipReq  
  64.     _Message io_Message 
  65.     DevicePtr  io_Device    /* device node pointer  */
  66.     ClipboardUnitPartialPtr  io_Unit  /* unit node pointer */
  67.     SHORTINT   io_Command      /* device command */
  68.     BYTE    io_Flags        /* including QUICK and SATISFY */
  69.     BYTE    io_Error        /* error or warning num */
  70.     LONGINT   io_Actual       /* number of bytes transferred */
  71.     LONGINT   io_Length       /* number of bytes requested */
  72.     ADDRESS  io_Data         /* either clip stream or post port */
  73.     LONGINT   io_Offset       /* offset in clip stream */
  74.     LONGINT    io_ClipID       /* ordinal clip identifier */
  75. END STRUCT 
  76.  
  77. #define PRIMARY_CLIP    0   /* primary clip unit */
  78.  
  79. STRUCT SatisfyMsg  
  80.     _Message sm_Msg   /* the length will be 6 */
  81.     SHORTINT   sm_Unit         /* which clip unit this is */
  82.     LONGINT    sm_ClipID       /* the clip identifier of the post */
  83. END STRUCT 
  84.  
  85. STRUCT ClipHookMsg  
  86.     LONGINT   chm_Type        /* zero for this structure format */
  87.     LONGINT    chm_ChangeCmd   /* command that caused this hook invocation: */
  88.                 /*   either CMD_UPDATE or CBD_POST */
  89.     LONGINT    chm_ClipID      /* the clip identifier of the new data */
  90. END STRUCT 
  91.  
  92. #endif  /* DEVICES_CLIPBOARD_H */
  93.